package com.laowang.project.system.service.impl;

import java.util.List;
                                                                                        import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyFormCarMapper;
import com.laowang.project.system.domain.MyFormCar;
import com.laowang.project.system.service.MyFormCarService;

/**
 * 租车Service业务层处理
 *
 * @author laowang
 * @date 2024-04-24
 */
@Service
public class MyFormCarServiceImpl implements MyFormCarService {
    @Autowired
    private MyFormCarMapper myFormCarMapper;

    /**
     * 查询租车
     *
     * @param id 租车ID
     * @return 租车
     */
    @Override
    public MyFormCar selectMyFormCarById(Integer id) {
        return myFormCarMapper.selectMyFormCarById(id);
    }

    /**
     * 查询租车列表
     *
     * @param myFormCar 租车
     * @return 租车
     */
    @Override
    public List<MyFormCar> selectMyFormCarList(MyFormCar myFormCar) {
        return myFormCarMapper.selectMyFormCarList(myFormCar);
    }

    /**
     * 新增租车
     *
     * @param myFormCar 租车
     * @return 结果
     */
    @Override
    public int insertMyFormCar(MyFormCar myFormCar) {
                                                                                                                                                            return myFormCarMapper.insertMyFormCar(myFormCar);
    }

    /**
     * 修改租车
     *
     * @param myFormCar 租车
     * @return 结果
     */
    @Override
    public int updateMyFormCar(MyFormCar myFormCar) {
                                                                                                                                                            return myFormCarMapper.updateMyFormCar(myFormCar);
    }

    /**
     * 批量删除租车
     *
     * @param ids 需要删除的租车ID
     * @return 结果
     */
    @Override
    public int deleteMyFormCarByIds(Integer[] ids) {
        return myFormCarMapper.deleteMyFormCarByIds(ids);
    }

    /**
     * 删除租车信息
     *
     * @param id 租车ID
     * @return 结果
     */
    @Override
    public int deleteMyFormCarById(Integer id) {
        return myFormCarMapper.deleteMyFormCarById(id);
    }
}
